package com.sdgakj.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;


@Entity
@Table(name="f_feedback")
public class Feedback extends IdEntity {
	private String message;
	private String mobile;
	private Date createDate;
    private Long userId;
	private String deltag;
	
	private String lastReviewerName;
	private String lastReview;
	private Date lastReviewTime;
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDeltag() {
		return deltag;
	}
	public void setDeltag(String deltag) {
		this.deltag = deltag;
	}
	
	public String getLastReviewerName() {
		return lastReviewerName;
	}
	public void setLastReviewerName(String lastReviewerName) {
		this.lastReviewerName = lastReviewerName;
	}
	
	public String getLastReview() {
		return lastReview;
	}
	public void setLastReview(String lastReview) {
		this.lastReview = lastReview;
	}

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	public Date getLastReviewTime() {
		return lastReviewTime;
	}
	public void setLastReviewTime(Date lastReviewTime) {
		this.lastReviewTime = lastReviewTime;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
